<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/member/member/membergain.js"></script>
    <link rel="stylesheet" href="${ctx}/statics/css/update.css">
    <link rel="stylesheet" href="${ctx}/statics/css/common.css">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.css">
    <script src="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.js"></script>
    <%--<link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/skins/laydate.css">--%>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.css">
    <style>
        .fixed-table-toolbar {
            top: -2px;
            right: 160px;
        }

        .bootstrap-table .fixed-table-container .table thead th .th-inner {
            text-align: center !important;
        }
    </style>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>会员管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>会员权益</strong>' +
            '</li>' +
            '</ol>';
    });


    var has_add = '';
    var has_edit = '';
    var has_delete = '';
    var MemberManager_member_look =false;
    var MemberManager_member_update =false;
</script>


<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                    <input type="hidden" id="sublevel" value="${sublevel}">
                    <input id="gainName" name="gainName" type="text" class="form-control longInput input-distance"
                           placeholder="请输入权益名称">
                    <button class="btn btn-success input-distance" onclick="membergain.reLoad()">查询</button>
                    <button class="btn btn-success input-distance exportBtn" onclick="membergain.exportList()">导出</button>
                    <button type="button" class="btn btn-primary " style="margin-left: 4px" onclick="membergain.addMemberGain()">新增权益</button>
            </div>
            <div class="table-responsive" style="z-index: 1;">
                <table id="exampleTable" style="word-break:break-all;" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>
</div>
<shiro:hasPermission name="MemberManager_member_look">
    <script>
        MemberManager_member_look = true;
    </script>
</shiro:hasPermission>
<shiro:hasPermission name="MemberManager_member_update">
    <script>
        MemberManager_member_update = true;
    </script>
</shiro:hasPermission>
<script type="text/javascript">

   /* // //日期范围限制
    var start = {
        elem: '#startTime',
        format: 'YYYY-MM-DD hh:mm:ss',
        // theme: '#3195f0',
        // min: laydate.now(), //设定最小日期为当前日期
        // max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false,
        choose: function (datas) {
            $("#endTime").val("")
            end.min = datas
        }
    };
    var end = {
        elem: '#endTime',
        format: 'YYYY-MM-DD hh:mm:ss',
        // theme: '#3195f0',
        // min: laydate.now(),
        // max: '2099-06-16 23:59:59',
        istime: true,
        istoday: false,
        choose: function (datas) {
            start.max = datas; //结束日选好后，重置开始日的最大日期
        }
    };
    laydate(start);
    laydate(end);
    laydate.skin('molv');//皮肤
*/
    membergain.init();
</script>
</body>
</html>
